#ifndef DBTABDATABASEINFO_H
#define DBTABDATABASEINFO_H

#include "dbtabbase.h"
#ifndef MYSQL
#if QT_VERSION < 0X050000
#define DATABASE_NAME USR_DIR"checkweighter.db"
#else
#define DATABASE_NAME "checkweighter.db"
#endif
#else
#define DATABASE_NAME "standscale14"
#endif
#define DATABASE_20161029 20161029
#define DATABASE_20161118 20161118
/*idsetting 增加图片显示
 */
#define DATABASE_20161123 20161123
/*record 中固定增加8个ID*/
#define DATABASE_20170206 20170206

#define DATABASE_VERSION DATABASE_20170206

class DBTabDataBaseInfo :public DBTabBase
{
public:
    static const QString TAB_NAME;
    static const QString _INFO_NAME;
    static const QString _INFO_VALUE;
    static const QString _UPDATE_TIME;
    void createTab(QSqlDatabase &db);
    static QString getValue(QSqlDatabase &db,const QString &name);
    static void setValue(QSqlDatabase &db,const QString &name,const QString &value);
};

#endif // DBTABDATABASEINFO_H
